package com.michale.common.constants;

import io.swagger.annotations.ApiModelProperty;

/**
 * @author Michale
 * @apiNote 用户常量信息
 */
public class UserConstant {

    @ApiModelProperty("平台内系统用户的唯一标志")
    public static final String USER = "USER";

    @ApiModelProperty("是否为管理员")
    public static final String IS_ADMIN = "0";

    @ApiModelProperty("是否为登录者")
    public static final String LOGIN_USER = "loginUser";

    @ApiModelProperty("是否为被操作者")
    public static final String OPERATE_USER = "operateUser";

    @ApiModelProperty("正常状态")
    public static final String NORMAL = "0";

    @ApiModelProperty("异常状态")
    public static final String EXCEPTION = "1";

    @ApiModelProperty("用户封禁状态")
    public static final String USER_DISABLE = "1";

    @ApiModelProperty("角色封禁状态")
    public static final String ROLE_DISABLE = "1";

    @ApiModelProperty("部门正常状态")
    public static final String DEPT_NORMAL = "0";

    @ApiModelProperty("部门停用状态")
    public static final String DEPT_DISABLE = "1";

    @ApiModelProperty("字典正常状态")
    public static final String DICT_NORMAL = "0";


    @ApiModelProperty("是否隐藏路由（是）")
    public static final String HIDDEN = "1";

    @ApiModelProperty("当设置 noRedirect 的时候该路由在面包屑导航中不可被点击")
    public static final String REDIRECT = "noRedirect";

    @ApiModelProperty("是否为系统默认（是）")
    public static final String YES = "Y";


    @ApiModelProperty("是否菜单外链（是）")
    public static final String YES_FRAME = "0";


    @ApiModelProperty("是否菜单外链（否）")
    public static final String NO_FRAME = "1";


    @ApiModelProperty("菜单类型（目录）")
    public static final String TYPE_DIR = "M";


    @ApiModelProperty("菜单类型（菜单）")
    public static final String TYPE_MENU = "C";

    @ApiModelProperty("菜单类型（按钮）")
    public static final String TYPE_BUTTON = "F";

    @ApiModelProperty("Layout组件标识")
    public final static String LAYOUT = "Layout";

    @ApiModelProperty("ParentView组件标识")
    public final static String PARENT_VIEW = "ParentView";

    @ApiModelProperty("InnerLink组件标识")
    public final static String INNER_LINK = "InnerLink";

    @ApiModelProperty("校验返回结果码")
    public final static String UNIQUE = "0";
    public final static String NOT_UNIQUE = "1";


    @ApiModelProperty("用户名长度限制")
    public static final int USERNAME_MIN_LENGTH = 2;
    public static final int USERNAME_MAX_LENGTH = 20;

    @ApiModelProperty("密码长度限制")
    public static final int PASSWORD_MIN_LENGTH = 5;
    public static final int PASSWORD_MAX_LENGTH = 20;
}
